﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FormRemoteModel.QueryColumn.Model
{
    public class QueryColumnSet
    {
        [NumValidate("form.query.group.id.error", 0)]
        public long GroupId { get; set; }

        public string ColLabel
        {
            get;
            set;
        }
        public string ColName
        {
            get;
            set;
        }
        public FormColumnFuncType FuncType
        {
            get;
            set;
        }
        public PhyTableDataType DataType
        {
            get;
            set;
        }
        public PhyColShowMode ShowMode
        {
            get;
            set;
        }
        public long? SourceCol
        {
            get;
            set;
        }

        public int? Width { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        public short ColLen
        {
            get;
            set;
        }

        /// <summary>
        /// 小数位精度
        /// </summary>
        public short? Precision
        {
            get;
            set;
        }

        public bool IsNull
        {
            get;
            set;
        }

        public bool IsHidden
        {
            get;
            set;
        }

        public bool IsQueryHide
        {
            get;
            set;
        }
        public ColAlign Align { get; set; }

        public long? DictId { get; set; }

        public string DefValue { get; set; }

        public Dictionary<string, object> ColumnSet
        {
            get;
            set;
        }
    }
}
